<template>
  <div>
    <button @click="btnClick">调用接口获取频道列表</button>
  </div>
</template>
<script>
import { channels } from '@/api/index'
export default {
  methods: {
    async btnClick () {
      const res = await channels()

      console.log(res)
    }
  }
}
</script>
<style></style>
